<?php
namespace app\index\model;

use think\Model;
/**
 * 联系人信息管理
 */
class ContactInfos extends Model
{
    protected $autoWriteTimestamp = 'timestamp';
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';
    protected $table = 'contactioninfo';

    /**
     * [createDriverInfo 创建联系人信息]
     * @param  [type] $post_contactinfo_info [description]
     * @return [type]                  [description]
     */
    public function createContactInfo($post_contact_info)
    {
        return $this->create($post_contact_info);
    }
    /**
     * [deleteDriverInfo 删除联系人信息]
     * @param  [type]  $id       [description]
     * @param  boolean $forcedel [description]
     * @return [type]            [description]
     */
    public function deleteInfo($id)
    {
        return $this->where('id','in',$id)->delete();
    }
    /**
     * [getSexList 性别列表]
     * @return [type] [description]
     */
    public function getSex()
    {
       $sex = ['0'=>'男', '1'=>'女','2'=>'保密'];
       return $sex;
    }

}